function issuanceGrade(){
	var customerId=document.getElementById("uid").value;
	var nicky=document.getElementById("nicky").value;
	var scoreObj=document.getElementsByName("grade");
	var score;
	for(var i=0;i<scoreObj.length;i++){
		if(scoreObj[i].checked==true){
			score=scoreObj[i].value;
		}
	}
	if(score==undefined){
		alert("必须选择一项提交！");
	}else{
	var productId=document.getElementById("productId").value;
	var Parameter={"customerId":customerId,"productId":productId,"score":score,"nicky":nicky};
	EvaluateService.getCountByNaeingRecord("evaluate_sqlMap.evaluateByCustomer",Parameter,{callback:function(returnValue){
		if(returnValue==0){
			
			EvaluateService.insertRecord("evaluate_sqlMap.insertEvaluate",Parameter,{callback:function(returnValue){	
				if(returnValue>0){
					alert("评分成功！");
					
					self.opener.location.reload();
					
					window.close();
				}
			}});
		}else if(returnValue>0){
			EvaluateService.insertRecord("evaluate_sqlMap.updateEvaluate",Parameter,{callback:function(returnValue){	
				if(returnValue>0){
					alert("评分成功！");
					
					self.opener.location.reload();
					
					window.close();
				}
			}});
		}
	}
	})
	}
}